﻿using System;
using System.Collections.Generic;

namespace roster.Domain
{
    public static class EnumerableIPlayerExtension
    {
        public static void UpdateAttendance(this IEnumerable<IPlayer> players)
        {
            var now = DateTime.Now;
            players.ForEach(x => x.LastAttendance = now);
        }
    }
}